home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
misc_src
/
vlib205
/
vlibdemo.rc
< prev
next >
Wrap
Text File
|
1995-11-01
|
13KB
|
341 lines
#include "windows.h"
#include "vlibdemo.h"
VL_LOGO ICON visualib.ico
VlibDemo MENU
BEGIN
POPUP "&Demo"
BEGIN
MENUITEM "NURBS Curves", IDM_DEMO_NURBSCURVE
MENUITEM "Image Mapping", IDM_DEMO_IMAGEMAPPING
MENUITEM "3D Composite", IDM_DEMO_3DCOMPOSITE
MENUITEM "2D Composite", IDM_DEMO_2DCOMPOSITE
MENUITEM "Depth Clipping" IDM_DEMO_DEPTHCLIPPING
MENUITEM "Marble Ring", IDM_DEMO_MARBLERING
MENUITEM "Wood Surface", IDM_DEMO_WOODSURFACE
MENUITEM "Bumpy Donut", IDM_DEMO_BUMPYDONUT
MENUITEM "Spot Lights", IDM_DEMO_SPOTLIGHT
MENUITEM "Granite Block", IDM_DEMO_GRANITECUBE
MENUItEM "Stereo Text", IDM_DEMO_STEREOTEXT
MENUITEM "Material Property", IDM_DEMO_MATERIALPROPERTY
MENUITEM "Poly Facets" IDM_DEMO_POLYFACET
MENUITEM SEPARATOR
POPUP "Picture"
BEGIN
MENUITEM "Save Picture", IDM_DEMO_SAVEPICTURE
MENUITEM "Print Picture", IDM_DEMO_PRINTPICTURE
MENUITEM "With Frame", IDM_DEMO_WITHFRAME
END
MENUITEM "Print Drawing", IDM_DEMO_PRINTFLAG
MENUITEM SEPARATOR
MENUITEM "Exit", IDM_DEMO_EXIT
END
POPUP "A&nimation"
BEGIN
MENUITEM "2D Objects", IDM_ANIMATE_OBJECT2D
MENUITEM "3D Objects", IDM_ANIMATE_OBJECT3D
MENUITEM "Viewer Motion", IDM_ANIMATE_VIEWER3D
MENUITEM "Viewer Zoom", IDM_ANIMATE_ZOOM3D
MENUITEM "Surface Rotation", IDM_ANIMATE_SURFACE
MENUITEM "Moving Dodecahedron", IDM_ANIMATE_DODECAHEDRON
MENUITEM "Moving Icosahedron", IDM_ANIMATE_ICOSAHEDRON
MENUITEM "Moving Star", IDM_ANIMATE_STAR3D
MENUITEM "Moving Frame", IDM_ANIMATE_FRAME
END
POPUP "&Primitive"
BEGIN
POPUP "2D Object"
BEGIN
POPUP "Basic"
BEGIN
MENUITEM "Line", IDM_2DPRIME_LINE
MENUITEM "Polyline", IDM_2DPRIME_POLYLINE
MENUITEM "Mark", IDM_2DPRIME_MARK
MENUITEM "Label", IDM_2DPRIME_LABEL
MENUITEM "Pointer", IDM_2DPRIME_POINTER
MENUITEM "Net", IDM_2DPRIME_NET
MENUITEM "Spiral", IDM_2DPRIME_SPIRAL
END
POPUP "Curve"
BEGIN
MENUITEM "Bezier", IDM_2DCURVE_BEZIER
MENUITEM "Hermit", IDM_2DCURVE_HERMIT
MENUITEM "B-Spline", IDM_2DCURVE_BSPLINE
MENUITEM "NURBS Knots", IDM_2DCURVE_NURBSKNOTS
MENUITEM "NURBS", IDM_2DCURVE_NURBS
MENUITEM "Catmullrom", IDM_2DCURVE_CATMULLROM
MENUITEM "Quadratic Curve",IDM_2DCURVE_QBEZIER
END
POPUP "Shape"
BEGIN
MENUITEM "Box", IDM_2DSHAPE_BOX
MENUITEM "Disk", IDM_2DSHAPE_DISK
MENUITEM "Ngon", IDM_2DSHAPE_NGON
MENUITEM "Pie", IDM_2DSHAPE_PIE
MENUITEM "Chord", IDM_2DSHAPE_CHORD
MENUITEM "Star", IDM_2DSHAPE_STAR
MENUITEM "Flower", IDM_2DSHAPE_FLOWER
MENUITEM "Rose", IDM_2DSHAPE_ROSE
MENUITEM "Ring", IDM_2DSHAPE_RING
END
END
POPUP "3D Object"
BEGIN
POPUP "Basic"
BEGIN
MENUITEM "Line", IDM_3DPRIME_LINE
MENUITEM "Polyline", IDM_3DPRIME_POLYLINE
MENUITEM "Mark", IDM_3DPRIME_MARK
MENUITEM "Label", IDM_3DPRIME_LABEL
MENUITEM "Pointer", IDM_3DPRIME_POINTER
MENUITEM "Net", IDM_3DPRIME_NET
MENUITEM "Spring", IDM_3DPRIME_SPRING
MENUITEM "Spiral", IDM_3DPRIME_SPIRAL
END
POPUP "Curve"
BEGIN
MENUITEM "Bezier", IDM_3DCURVE_BEZIER
MENUITEM "Hermit", IDM_3DCURVE_HERMIT
MENUITEM "BSpline", IDM_3DCURVE_BSPLINE
MENUITEM "NURBS", IDM_3DCURVE_NURBS
MENUITEM "CatmullRom", IDM_3DCURVE_CATMULLROM
MENUITEM "Quadratic Curve", IDM_3DCURVE_QBEZIER
END
POPUP "Shape"
BEGIN
MENUITEM "Box", IDM_3DSHAPE_BOX
MENUITEM "Disk", IDM_3DSHAPE_DISK
MENUITEM "Ngon", IDM_3DSHAPE_NGON
MENUITEM "Pie", IDM_3DSHAPE_PIE
MENUITEM "Chord", IDM_3DSHAPE_CHORD
MENUITEM "Star", IDM_3DSHAPE_STAR
MENUITEM "Flower", IDM_3DSHAPE_FLOWER
MENUITEM "Ring", IDM_3DSHAPE_RING
MENUITEM "Rose", IDM_3DSHAPE_ROSE
END
END
POPUP "Surface Object"
BEGIN
MENUITEM "Bezier Surface", IDM_SURFACE_BEZIER
MENUITEM "Hermit Surface", IDM_SURFACE_HERMIT
MENUITEM "B-Spline Surface", IDM_SURFACE_BSPLINE
MENUITEM "NURBS Surface", IDM_SURFACE_NURBS
MENUITEM "Coons Patch", IDM_SURFACE_COONSPATCH
END
POPUP "Solid Object"
BEGIN
MENUITEM "Torus", IDM_SOLID_TORUS
MENUITEM "Sphere", IDM_SOLID_SPHERE
MENUITEM "Ellipsoid", IDM_SOLID_ELLIPSOID
MENUITEM "Cylinder", IDM_SOLID_CYLINDER
MENUITEM "Cone", IDM_SOLID_CONE
MENUITEM "Box", IDM_SOLID_BOX
MENUITEM "Tube && Ring", IDM_SOLID_TUBE
MENUITEM "Tetrahedron", IDM_SOLID_TETRAHEDRON
MENUITEM "Octahedron", IDM_SOLID_OCTAHEDRON
MENUITEM "Dodecahedron", IDM_SOLID_DODECAHEDRON
MENUITEM "Icosahedron", IDM_SOLID_ICOSAHEDRON
MENUITEM "Frustum", IDM_SOLID_FRUSTUM
MENUITEM "Ridge", IDM_SOLID_RIDGE
MENUITEM "Star", IDM_SOLID_STAR
MENUITEM "Flower", IDM_SOLID_FLOWER
END
POPUP "String Object"
BEGIN
MENUITEM "Solid Text", IDM_TEXT_SOLID
MENUITEM "3D Text", IDM_TEXT_3D
MENUITEM "2D Text", IDM_TEXT_2D
MENUITEM SEPARATOR
MENUITEM "Select Font", IDM_TEXT_SELECTFONT
END
END
POPUP "Transform"
BEGIN
POPUP "2D Transf"
BEGIN
MENUITEM "Translate" IDM_2DTRANSF_TRANSLATE
MENUITEM "Point Scale", IDM_2DTRANSF_POINTSCALE
MENUITEM "Point Rotate", IDM_2DTRANSF_POINTROTATE
MENUITEM "Shear", IDM_2DTRANSF_SHEAR
MENUITEM "Stretch", IDM_2DTRANSF_STRETCH
MENUITEM "Mirror", IDM_2DTRANSF_MIRROR
END
POPUP "3D Transf"
BEGIN
MENUITEM "Point Scale", IDM_3DTRANSF_POINTSCALE
MENUITEM "Axle Rotate", IDM_3DTRANSF_AXLEROTATE
MENUITEM "Stretch", IDM_3DTRANSF_STRETCH
MENUITEM "Shear", IDM_3DTRANSF_SHEAR
MENUITEM "Mirror", IDM_3DTRANSF_MIRROR
END
POPUP "Object Array"
BEGIN
MENUITEM "Rectangular 3D", IDM_3DARRAY_RECTANGLE
MENUITEM "Polar 3D", IDM_3DARRAY_POLAR
MENUITEM "Cubic", IDM_3DARRAY_CUBIC
MENUITEM "Cylindric", IDM_3DARRAY_CYLINDRIC
MENUITEM "Spheric", IDM_3DARRAY_SPHERIC
MENUITEM SEPARATOR
MENUITEM "Rectangular 2D", IDM_2DARRAY_RECTANGLE
MENUITEM "Polar 2D", IDM_2DARRAY_POLAR
END
END
POPUP "&Option"
BEGIN
MENUITEM "Background Color", IDM_OPTION_BACKCOLOR
MENUITEM "Repaint Window", IDM_OPTION_REDRAW
MENUITEM "Shding Method", IDM_OPTION_SHADEMODE
MENUITEM "Shading Preview", IDM_OPTION_PREVIEW
POPUP "&Light Setting"
BEGIN
MENUITEM "Select Light &1", IDM_SELECT_L1
MENUITEM "Select Light &2", IDM_SELECT_L2
MENUITEM "Select Light &3", IDM_SELECT_L3
MENUITEM "Select Light &4", IDM_SELECT_L4
MENUITEM SEPARATOR
MENUITEM "&Global Ambient", IDM_GLOBAL_AMBIENT
END
POPUP "&Material Setting"
BEGIN
MENUITEM "Select Material &1", IDM_SELECT_M1
MENUITEM "Select Material &2", IDM_SELECT_M2
MENUITEM "Select Material &3", IDM_SELECT_M3
MENUITEM "Select Material &4", IDM_SELECT_M4
END
MENUITEM "&Solid Texture", IDM_OPTION_TEXTURE
END
POPUP "&Help"
BEGIN
MENUITEM "Demo Help", IDM_HELP_DEMOPROG
MENUITEM "Visualib Help", IDM_HELP_VISUALIB
MENUITEM "About VisualLib", IDM_HELP_ABOUT
MENUITEM "License Info", IDM_HELP_LICENSE
END
END
DLGSETPOINT2D DIALOG 6, 18, 97, 71
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Set Point 2D"
FONT 8, "MS Sans Serif"
BEGIN
EDITTEXT XCOORD, 29, 11, 50, 12, ES_AUTOHSCROLL
EDITTEXT YCOORD, 29, 26, 50, 12, ES_AUTOHSCROLL
LTEXT "X:", -1, 18, 13, 8, 8
LTEXT "Y:", -1, 18, 28, 8, 8
PUSHBUTTON "&Cancel", IDCANCEL, 15, 46, 31, 14
PUSHBUTTON "&Ok", IDOK, 51, 46, 31, 14
END
DLGSETPOINT3D DIALOG 6, 18, 97, 82
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Set Point 3D"
FONT 8, "MS Sans Serif"
BEGIN
EDITTEXT XCOORD, 29, 11, 50, 12, ES_AUTOHSCROLL
EDITTEXT YCOORD, 29, 26, 50, 12, ES_AUTOHSCROLL
EDITTEXT ZCOORD, 29, 41, 50, 12, ES_AUTOHSCROLL
PUSHBUTTON "&Cancel", IDCANCEL, 14, 59, 31, 14, WS_GROUP
PUSHBUTTON "&Ok", IDOK, 50, 59, 31, 14
LTEXT "X:", -1, 18, 13, 8, 8
LTEXT "Y:", -1, 18, 28, 8, 8
LTEXT "Z:", -1, 18, 43, 8, 8
END
DLGLIGHTSETUP DIALOG 6, 18, 242, 121
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Light Setup"
FONT 8, "MS Sans Serif"
BEGIN
GROUPBOX "Location", 109, 9, 10, 82, 76, WS_GROUP
LTEXT "x", YCOORD, 21, 25, 6, 8, NOT WS_GROUP
EDITTEXT LIGHTLOCX, 29, 24, 55, 12, ES_AUTOHSCROLL
LTEXT "y", 106, 21, 46, 6, 8, NOT WS_GROUP
EDITTEXT LIGHTLOCY, 29, 44, 55, 12, ES_AUTOHSCROLL
LTEXT "z", 108, 21, 67, 6, 8, NOT WS_GROUP
EDITTEXT LIGHTLOCZ, 29, 65, 55, 12, ES_AUTOHSCROLL
GROUPBOX "Direction", 114, 97, 10, 82, 76, WS_GROUP
LTEXT "x", 113, 109, 25, 6, 8, NOT WS_GROUP
EDITTEXT LIGHTDIRX, 117, 24, 55, 12, ES_AUTOHSCROLL
LTEXT "y", 116, 109, 46, 6, 8, NOT WS_GROUP
EDITTEXT LIGHTDIRY, 117, 44, 55, 12, ES_AUTOHSCROLL
LTEXT "z", 118, 109, 67, 6, 8, NOT WS_GROUP
EDITTEXT LIGHTDIRZ, 117, 65, 55, 12, ES_AUTOHSCROLL
CONTROL "Light On", LIGHTON, "Button", BS_AUTOCHECKBOX |
WS_GROUP | WS_TABSTOP, 31, 98, 40, 10
PUSHBUTTON "OK", IDOK, 191, 23, 40, 14
PUSHBUTTON "Cancel", IDCANCEL, 191, 54, 40, 14
PUSHBUTTON "Color...", LIGHTCOLOR, 191, 86, 40, 14
END
DLGMATERIAL DIALOG 58, 18, 144, 96
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Material Setup"
FONT 8, "MS Sans Serif"
BEGIN
PUSHBUTTON "Diffuse", MATDIFFUSE, 18, 7, 40, 14, WS_GROUP
PUSHBUTTON "Ambient", MATAMBIENT, 18, 29, 40, 14
PUSHBUTTON "Specular", MATSPECULAR, 18, 51, 40, 14
PUSHBUTTON "Emission", MATEMISSION, 18, 74, 40, 14
PUSHBUTTON "OK", IDOK, 92, 29, 40, 14
PUSHBUTTON "Cancel", IDCANCEL, 92, 53, 40, 14
END
DLGSHADING DIALOG 6, 18, 202, 125
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Shading Options"
FONT 8, "MS Sans Serif"
BEGIN
GROUPBOX "Mode", 104, 9, 9, 66, 108, WS_GROUP
CONTROL "Wire frame", WIREFRAME, "Button", BS_AUTORADIOBUTTON |
WS_GROUP | WS_TABSTOP, 16, 23, 54, 10
CONTROL "Solid fill", SOLIDFILL, "Button", BS_AUTORADIOBUTTON,
16, 39, 54, 10
CONTROL "Flat shading", FLATSHADING, "Button",
BS_AUTORADIOBUTTON, 16, 54, 54, 10
CONTROL "Gouraud", GOURAUD, "Button", BS_AUTORADIOBUTTON, 16, 68,
54, 10
CONTROL "Phong", PHONG, "Button", BS_AUTORADIOBUTTON, 16, 84, 54,
10
CONTROL "Specular", SPECULAR, "Button", BS_AUTORADIOBUTTON, 16,
98, 39, 10
GROUPBOX "Option", 111, 83, 10, 65, 107, WS_GROUP
CONTROL "Depth buffer", DEPTHBUFFER, "Button", BS_AUTOCHECKBOX |
WS_GROUP | WS_TABSTOP, 90, 25, 54, 10
CONTROL "Local viewer", LOCALVIEWER, "Button", BS_AUTOCHECKBOX |
WS_TABSTOP, 90, 39, 54, 10
CONTROL "2 side shade", TWOSIDE, "Button", BS_AUTOCHECKBOX |
WS_TABSTOP, 90, 55, 54, 10
CONTROL "Backface removal", BACKFACEREM, "Button",
BS_AUTOCHECKBOX | WS_TABSTOP, 90, 69, 54, 10
PUSHBUTTON "OK", IDOK, 155, 34, 40, 14, WS_GROUP
PUSHBUTTON "Cancel", IDCANCEL, 154, 66, 40, 14
END
DLGTEXTURE DIALOG DISCARDABLE 6, 18, 179, 116
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Solid Texture"
FONT 8, "MS Sans Serif"
BEGIN
GROUPBOX "Texture",104,13,14,64,74,WS_GROUP
CONTROL "None",TEXTURENONE,"Button",BS_AUTORADIOBUTTON |
WS_GROUP | WS_TABSTOP,22,27,39,10
CONTROL "Marble",TEXTUREMARBLE,"Button",BS_AUTORADIOBUTTON,22,41,
39,10
CONTROL "Wood",TEXTUREWOOD,"Button",BS_AUTORADIOBUTTON,22,55,39,
10
PUSHBUTTON "OK",IDOK,42,95,40,14
PUSHBUTTON "Cancel",IDCANCEL,98,95,40,14
CONTROL "Granite",TEXTUREGRANITE,"Button",BS_AUTORADIOBUTTON,22,
69,39,10
CONTROL "Perturb Material",IDC_CHECK1,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,96,27,63,10
CONTROL "Perturb Normal",IDC_CHECK2,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,96,41,60,10
CONTROL "Perturb Pixel",IDC_CHECK3,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,96,55,53,10
CONTROL "Perturb Facet",IDC_CHECK4,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,96,69,56,10
GROUPBOX "Perturbation",IDC_STATIC,91,14,74,74
END